include ../../config.mk
INCLUDE = -I./include/
SUBDIR := $(filter-out include, $(SUBDIR))
SUBTGT = all

.PHONY: all clean install distclean subdir $(SUBDIR)

objs = core.o views/view.o views/html_helper.o controllers/header_helper.o

all:libcore.a

libcore.a:$(objs)
	$(AR) $(ARFLAGS) $@ $(objs)

core.o: subdir

subdir:$(SUBDIR)

$(SUBDIR):
	$(MAKE) -C $@ $(SUBTGT)
	
clean:
	$(RM) $(objs) libcore.a
	$(MAKE) $(SUBDIR) SUBTGT=$@
#	$(warning core warning)